Optimal. Leaf size=345 \[ \frac {2 b \left (22 a^2 B+27 a A b+7 b^2 B\right ) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{45 d}+\frac {2 \left (7 a^3 B+21 a^2 A b+15 a b^2 B+5 A b^3\right ) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{21 d}+\frac {2 \left (15 a^3 A+27 a^2 b B+27 a A b^2+7 b^3 B\right ) \sin (c+d x) \sqrt {\sec (c+d x)}}{15 d}+\frac {2 \left (7 a^3 B+21 a^2 A b+15 a b^2 B+5 A b^3\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{21 d}-\frac {2 \left (15 a^3 A+27 a^2 b B+27 a A b^2+7 b^3 B\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{15 d}+\frac {2 b^2 (13 a B+9 A b) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 b B \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2}{9 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.57, antiderivative size = 345, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 8, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.242, Rules used = {4026, 4076, 4047, 3768, 3771, 2641, 4046, 2639} \[ \frac {2 b \left (22 a^2 B+27 a A b+7 b^2 B\right ) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{45 d}+\frac {2 \left (21 a^2 A b+7 a^3 B+15 a b^2 B+5 A b^3\right ) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{21 d}+\frac {2 \left (15 a^3 A+27 a^2 b B+27 a A b^2+7 b^3 B\right ) \sin (c+d x) \sqrt {\sec (c+d x)}}{15 d}+\frac {2 \left (21 a^2 A b+7 a^3 B+15 a b^2 B+5 A b^3\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{21 d}-\frac {2 \left (15 a^3 A+27 a^2 b B+27 a A b^2+7 b^3 B\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{15 d}+\frac {2 b^2 (13 a B+9 A b) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 b B \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2}{9 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 3768
Rule 3771
Rule 4026
Rule 4046
Rule 4047
Rule 4076
Rubi steps
\begin {align*} \int \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^3 (A+B \sec (c+d x)) \, dx &=\frac {2 b B \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d}+\frac {2}{9} \int \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x)) \left (\frac {3}{2} a (3 a A+b B)+\frac {1}{2} \left (7 b^2 B+9 a (2 A b+a B)\right ) \sec (c+d x)+\frac {1}{2} b (9 A b+13 a B) \sec ^2(c+d x)\right ) \, dx\\ &=\frac {2 b^2 (9 A b+13 a B) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{63 d}+\frac {2 b B \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d}+\frac {4}{63} \int \sec ^{\frac {3}{2}}(c+d x) \left (\frac {21}{4} a^2 (3 a A+b B)+\frac {9}{4} \left (21 a^2 A b+5 A b^3+7 a^3 B+15 a b^2 B\right ) \sec (c+d x)+\frac {7}{4} b \left (27 a A b+22 a^2 B+7 b^2 B\right ) \sec ^2(c+d x)\right ) \, dx\\ &=\frac {2 b^2 (9 A b+13 a B) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{63 d}+\frac {2 b B \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d}+\frac {4}{63} \int \sec ^{\frac {3}{2}}(c+d x) \left (\frac {21}{4} a^2 (3 a A+b B)+\frac {7}{4} b \left (27 a A b+22 a^2 B+7 b^2 B\right ) \sec ^2(c+d x)\right ) \, dx+\frac {1}{7} \left (21 a^2 A b+5 A b^3+7 a^3 B+15 a b^2 B\right ) \int \sec ^{\frac {5}{2}}(c+d x) \, dx\\ &=\frac {2 \left (21 a^2 A b+5 A b^3+7 a^3 B+15 a b^2 B\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac {2 b \left (27 a A b+22 a^2 B+7 b^2 B\right ) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{45 d}+\frac {2 b^2 (9 A b+13 a B) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{63 d}+\frac {2 b B \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d}+\frac {1}{21} \left (21 a^2 A b+5 A b^3+7 a^3 B+15 a b^2 B\right ) \int \sqrt {\sec (c+d x)} \, dx+\frac {1}{15} \left (15 a^3 A+27 a A b^2+27 a^2 b B+7 b^3 B\right ) \int \sec ^{\frac {3}{2}}(c+d x) \, dx\\ &=\frac {2 \left (15 a^3 A+27 a A b^2+27 a^2 b B+7 b^3 B\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d}+\frac {2 \left (21 a^2 A b+5 A b^3+7 a^3 B+15 a b^2 B\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac {2 b \left (27 a A b+22 a^2 B+7 b^2 B\right ) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{45 d}+\frac {2 b^2 (9 A b+13 a B) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{63 d}+\frac {2 b B \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d}+\frac {1}{15} \left (-15 a^3 A-27 a A b^2-27 a^2 b B-7 b^3 B\right ) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx+\frac {1}{21} \left (\left (21 a^2 A b+5 A b^3+7 a^3 B+15 a b^2 B\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {2 \left (21 a^2 A b+5 A b^3+7 a^3 B+15 a b^2 B\right ) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{21 d}+\frac {2 \left (15 a^3 A+27 a A b^2+27 a^2 b B+7 b^3 B\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d}+\frac {2 \left (21 a^2 A b+5 A b^3+7 a^3 B+15 a b^2 B\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac {2 b \left (27 a A b+22 a^2 B+7 b^2 B\right ) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{45 d}+\frac {2 b^2 (9 A b+13 a B) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{63 d}+\frac {2 b B \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d}+\frac {1}{15} \left (\left (-15 a^3 A-27 a A b^2-27 a^2 b B-7 b^3 B\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx\\ &=-\frac {2 \left (15 a^3 A+27 a A b^2+27 a^2 b B+7 b^3 B\right ) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{15 d}+\frac {2 \left (21 a^2 A b+5 A b^3+7 a^3 B+15 a b^2 B\right ) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{21 d}+\frac {2 \left (15 a^3 A+27 a A b^2+27 a^2 b B+7 b^3 B\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d}+\frac {2 \left (21 a^2 A b+5 A b^3+7 a^3 B+15 a b^2 B\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac {2 b \left (27 a A b+22 a^2 B+7 b^2 B\right ) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{45 d}+\frac {2 b^2 (9 A b+13 a B) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{63 d}+\frac {2 b B \sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 6.57, size = 452, normalized size = 1.31 \[ \frac {\cos ^4(c+d x) (a+b \sec (c+d x))^3 (A+B \sec (c+d x)) \left (2 \left (35 a^3 B+105 a^2 A b+75 a b^2 B+25 A b^3\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )+\frac {2 \left (-105 a^3 A-189 a^2 b B-189 a A b^2-49 b^3 B\right ) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}\right )}{105 d (a \cos (c+d x)+b)^3 (A \cos (c+d x)+B)}+\frac {(a+b \sec (c+d x))^3 (A+B \sec (c+d x)) \left (\frac {2}{45} \sec ^2(c+d x) \left (27 a^2 b B \sin (c+d x)+27 a A b^2 \sin (c+d x)+7 b^3 B \sin (c+d x)\right )+\frac {2}{15} \left (15 a^3 A+27 a^2 b B+27 a A b^2+7 b^3 B\right ) \sin (c+d x)+\frac {2}{21} \sec (c+d x) \left (7 a^3 B \sin (c+d x)+21 a^2 A b \sin (c+d x)+15 a b^2 B \sin (c+d x)+5 A b^3 \sin (c+d x)\right )+\frac {2}{7} \sec ^3(c+d x) \left (3 a b^2 B \sin (c+d x)+A b^3 \sin (c+d x)\right )+\frac {2}{9} b^3 B \tan (c+d x) \sec ^3(c+d x)\right )}{d \sec ^{\frac {7}{2}}(c+d x) (a \cos (c+d x)+b)^3 (A \cos (c+d x)+B)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.50, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (B b^{3} \sec \left (d x + c\right )^{5} + A a^{3} \sec \left (d x + c\right ) + {\left (3 \, B a b^{2} + A b^{3}\right )} \sec \left (d x + c\right )^{4} + 3 \, {\left (B a^{2} b + A a b^{2}\right )} \sec \left (d x + c\right )^{3} + {\left (B a^{3} + 3 \, A a^{2} b\right )} \sec \left (d x + c\right )^{2}\right )} \sqrt {\sec \left (d x + c\right )}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (B \sec \left (d x + c\right ) + A\right )} {\left (b \sec \left (d x + c\right ) + a\right )}^{3} \sec \left (d x + c\right )^{\frac {3}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 20.42, size = 1193, normalized size = 3.46 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )\,{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^3\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________